# ! /usr/bin/env python
# coding=utf-8
'''
@author: fisher

@desc: UI控件定义

'''

class Gradereading():
    #进入课程button：xpath
    enbt_loc = u'//XCUIElementTypeButton[@name="我的课程"]'
    #我的课程里面布克阅读卡片入口
    enRead_loc = u'//*[@name="布克阅读"]/..'
    #考试首页底部进入考试按钮
    enExan_loc = u'//XCUIElementTypeButton[@name="进入考试"]'
    #续费首页底部继续学习按钮
    enExprire_loc = u'//XCUIElementTypeButton[@name="继续学习"]'
    #新用户首页加入微信按钮
    enRnew_loc = u'//XCUIElementTypeStaticText[@name="加入集训微信群"]'
    #登出按钮
    lgout_loc = u'//XCUIElementTypeApplication[@name="作业盒子小学"]/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeTable/XCUIElementTypeCell[12]'
    #首页分享按钮
    share_loc = u'//XCUIElementTypeImage[@name="/var/containers/Bundle/Application/09ACF3CC-1887-41BC-A55A-FD50274DC89D/RapidCalculation-AppleDev.app/gr_index_invite@2x.png"]'
    #分享页面分享给好友按钮
    shareFriend_loc = u'//XCUIElementTypeStaticText[@name="发送给微信好友"]/..'
    #首页右上角邀请有力里面 历史记录按钮
    histry_loc = u'//XCUIElementTypeStaticText[@name="邀请历史"]'
    #首页右上角邀请有力里面 免费天数
    freeday_loc = u'//XCUIElementTypeStaticText[@name="免费课程天数"]'


















